package com.dbq.fast.common.net.mock.mockApi;

import com.dbq.fast.common.net.mock.MockInterface;
import com.dbq.fast.common.net.mock.MockRouter;

/**
 * Created by sunkai on 2017/10/30.
 */

public class MockLogin implements MockInterface {
   public static final String URL = MockRouter.BASE_URL + "/user/login";


    public byte[] getResponse(String url) {
        String result = " {\n" +
                "        \"code\":200,\n" +
                "        \"msg\":\"登录成功\",\n" +
                "        \"data\":{\n" +
                "            \"token\":\"fk_12345678\",\n" +
                "            \"account\":\"123456789\",\n" +
                "            \"userServiceLevel\":1,\n" +
                "            \"newTestService\":1\n" +
                "        }\n" +
                "    }\n";
        return result.getBytes();
    }
}
